package com.bw.search.server.controller;

import com.bw.common.core.domain.Result;
import com.bw.search.common.EsProductModel;
import com.bw.search.server.service.EsService;
import com.bw.search.server.vo.SearchParam;
import com.bw.search.server.vo.SearchResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.io.IOException;
import java.util.List;

@RestController
@RequestMapping("/search")
public class EsController {

    @Autowired
    private EsService esService;

    @PostMapping("/productStatusUp")
    public Result productStatusUp(@RequestBody String esProductModels){
        esService.productStatsUp(esProductModels);

        return Result.success();
    }

}
